import { _decorator, Component, log, Sprite, resources, SpriteAtlas, SpriteFrame } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Card')
export class Card {
    id: number;

    type: String; //wan tong tiao feng zhongfabai hongheihua

    index: number;

    state: number = 0; // 0 牌堆 1 手牌 2 出过的牌 3 吃牌/碰/杠牌

    constructor(id: number, type: String, index: number) {
        this.id = id;
        this.type = type;
        this.index = index

    }

    onLoad() {
        // this.setCardSpriteFrame()
    }


    start() {



    }


}


